<?php $position = 4?>

<div class="title20" style="padding-bottom:10px"><?php echo $cats[$position]['name']?></div>

<hr style="background:linear-gradient(to right, gray, black);height:1px;">

<ul>
  <?php $contents = Doctrine::getTable('Content')->doFetchArray(
            array(
                    'parentCategoryId'=>$cats[$position]['id'], 
                    'limit'=>2
                 )
        );?>

  <?php foreach ($contents as $content):?>
    <li style="margin:0;padding:10px 0;">
        <?php echo link_to($content['title'], 'content/leaf1?id='.$content['id'], array('class'=>'list-title'));?>
        
        <div class="list-intro">
          <?php echo myTools::utf8_substr($content['intro'], 0, 50)?>
        </div>
    </li>
  <?php endforeach;?>
</ul>